package org.xq.softcup.mq.admin.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.xq.softcup.mq.admin.model.Registry;

import java.util.List;

/**
 * 消息注册持久层
 * @author admin
 */
@Mapper
public interface IRegDao {

    public List<Registry> pageList(@Param("offset") int offset, @Param("pagesize") int pagesize);

    public Registry load(@Param("key") String key);

    public int add(@Param("reg") Registry reg);

    public int update(@Param("reg") Registry reg);

    public int cleanDead();

}
